package com.wu.dms.constant;

import lombok.Getter;

/**
 * @author Cousin
 * @date 2024/12/26
 * @Description
 */
@Getter
public enum SexTypeEnum {
    MALES(0,"男"),FEMALES(1,"女生"),SECRECY(3, "保密");
    private Integer type;
    private String sex;
    SexTypeEnum(Integer type, String sex) {
        this.type = type;
        this.sex = sex;
    }
    public static String getSexByType(Integer type) {
        for (SexTypeEnum sexTypeEnum : SexTypeEnum.values()) {
            if (sexTypeEnum.getType().equals(type)) {
                return sexTypeEnum.getSex();
            }
        }
        return null;
    }

}
